package com.zscg.sequence.model;

import com.zscg.sequence.data.User;
import com.zscg.sequence.service.SequenceService;

public class UserManager {
	private static UserManager userManager;
	private User user;

	private UserManager() {

	}

	public User getUser() {
		return user;
	}

	public void setUser(User user) {
		this.user = user;
	}

	public static UserManager getInstance() {
		if (userManager == null) {
			userManager = new UserManager();
		}
		return userManager;
	}

	/**
	 * 更新用户
	 */
	public void updateUser(User user) {
		getInstance().user = user;
	}

	public static void login(String email, String psw) {

		SequenceService.clinet.login(email, User.MD5(psw));

	}

}
